<table id="box-table-a">
<tr>
    <th>Name</th>
    <th>Nickname</th>
    <th>Email</th>
    <th></th>
</tr>
<?php foreach ($query->result() as $rows) { ?>
<tr>
    <td><?=$rows->firstname?> <?=$rows->lastname?></td>
    <td><?=$rows->nickname?></td>
    <td><?=$rows->email?></td>
    <td></td>
</tr>
<?php } ?>
</table>
<?=$paginator?>